# -*- coding:utf-8 -*- 
'''
Created on 2015/3/14
@author: Jimmy Liu
'''
import unittest
import tushare.stock.trading as fd

class Test(unittest.TestCase):

    def set_data(self):
        self.code = 'hsi'


    #def test_get_us_hist_data(self):
    #    self.set_data()
    #    print(fd.get_us_hist_data(self.code))

    def test_get_hist_data(self):
        self.set_data()
        print(fd.get_hist_data(self.code))

    def test_get_index(self):
        print(fd.get_index())



if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()